package com.junxian.springboot01.service;

public class Leader implements Programer {
    private XiaoSun xiaoSun;

    public Leader(XiaoSun xiaoSun) {
        this.xiaoSun = xiaoSun;
    }

    private void check(){
        System.out.println("导师检查小孙的代码");
    }

    @Override
    public void coding() {
        //被代理类执行完毕
        xiaoSun.coding();
        //被代理类执行方法（增强）
        check();
    }
}
